package com.cold.demo.redis;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: zyc
 */
@RestController
@SpringBootApplication
public class DemoRedisApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(DemoRedisApplication.class);
    }

    @RequestMapping("/test")
    public Object test(HttpServletRequest request){
        return System.currentTimeMillis();
    }
}
